package com.cindata

class JasperFile 
{
    String name
    //文件名称
    String fileUrl
    //文件路径
    String description
    //文件描述
    Date createdDate = new Date()
    //文件创建时间
    Date modifiedDate = new Date()
    //文件修改时间
    Component component
    //关联组建

    static mapping = {
        autowire true
    }
    static constraints = 
    {
        component nullable: true,blank:true
        name unique: true, maxSize: 50
        fileUrl unique: true, maxSize: 100
        description nullable: true,blank: true, maxSize: 200
    }
}